package com.fairytask.engine.components.table
{
	import com.fairytask.data.BaseData;
	
	import flash.events.Event;
	
	public class TableEvent extends Event
	{
		public static const ROW_DOUBLE_CLICK		:String	=	"row_click";
		public static const ROW_SELECT	:String	=	"row_select";
		public static const ITEM_LINK		:String	=	"ITEM_LINK";
		public static const ROW_OVER	:String	=	"row_over"; 
		public static const ROW_OUT	:String	=	"row_out"; 
		
		
		private var _pos		:int;
		private var _pNote		:int;
		private var _data		:BaseData;
		
		public function TableEvent(type:String,pos:int=0,pData:BaseData=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_pos		=	pos;
			_data		=	pData;
			super(type, bubbles, cancelable);
		}
		
		public function get pNote():int
		{
			return _pNote;
		}
		
		public function set pNote(value:int):void
		{
			_pNote = value;
		}

		public function get pos():int
		{
			return _pos;
		}

		public function set pos(value:int):void
		{
			_pos = value;
		}

		public function get data():BaseData
		{
			return _data;
		}

		public function set data(value:BaseData):void
		{
			_data = value;
		}


	}
}